package gof_003_行为型_Behavioral.gof_004_策略_Strategy.gof_002_Strategy;

public class Strategy_3 implements Strategy {

    @Override
    public boolean condition(Student student) {
        //策略3 年龄小于等于24并且姓是赵钱中的一个
        boolean b = student.getAge() <= 24 && (student.getName().contains("赵") || student.getName().contains("钱"));
        return b;
    }
}
